from appium import webdriver
from appium.options.common import AppiumOptions


class TestXueqiu:
    def setup_class(self):
        self.options = AppiumOptions()
        self.options.load_capabilities(
            {
                "platformName": "android",
                "appium:automationName": "uiautomator2",
                "appium:ensureWebviewsHavePages": True,
                "appium:nativeWebScreenshot": True,
                "appium:newCommandTimeout": 3600,
                "appium:connectHardwareKeyboard": True
            }
        )

        self.driver = webdriver.Remote("http://127.0.0.1:4723", options=self.options)

    def test_xueqiu_search(self):
        pass